function menuToggle(target){
	var targetMenu=(document.getElementById)?document.getElementById(target).style:eval("document."+target);
	targetMenu.top=(parseInt(targetMenu.top)==21)?-2000:21;
}

function createMenu(menuName,menuTitle,menuEntries,left,width){
	var numEntries=menuEntries.length;
	var content="";
	content+="<div class='menuTitle' onmouseout=\"menuToggle('"+menuName+"');\"  onmouseover=\"menuToggle('"+menuName+"');\" style=\"left:"+left+"px;width:"+width+"px;\">";
	content+=menuTitle;
	content+="</div>";
	content+="<div id='"+menuName+"' class='menu' onmouseout=\"menuToggle('"+menuName+"');\"  style=\"left:"+left+"px;width:"+width+"px;\">";
	for(var i=0;i<numEntries;i++){
		content+="<a href=\""+menuEntries[i].url+"\" class=\"menuEntry\">"+menuEntries[i].entry+"</a>";
		content+="<br>";
	}
	content+="</div>";
	document.getElementById("mymenuid").innerHTML=content;
}

function createMenu1(){
	var myMenu1=new Array();
	myMenu1[0]={url:"http://www.baidu.com",entry:"baidu"}
	myMenu1[1]={url:"http://www.google.com",entry:"google"}
	myMenu1[2]={url:"http://www.cnbeta.com",entry:"cnbeta"}
	createMenu("myMenu1","my Menu1",myMenu1,200,100);
}